package com.lp.biz.business.model.vo;
import com.lp.biz.business.model.entity.Business;
import lombok.Data;

import java.time.format.DateTimeFormatter;

/**
 * @program: backend
 * @description:
 * @author: Ke.Song
 * @since: 2024-09-23 21:10:12
 */
@Data
public class BusinessList {

    public BusinessList(Business business) {
        this.setId(business.getId());
        this.setUnitName(business.getUnitName());
        this.setCity(business.getCity());
        this.setName(business.getName());
        this.setPhone(business.getPhone());
        this.setRequirementType(business.getRequirementType());
        this.setCooperation(business.getCooperation());
        this.setSubmitTime(business.getCreateAt().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
    }

    private Integer id;

    private String unitName;

    private String city;

    private String name;

    private String phone;

    private String requirementType;

    private String cooperation;

    private String submitTime;
}
